package com.dgut.hisystem.service;
import com.dgut.hisystem.entity.Charge;
import com.dgut.hisystem.entity.VO.BalanceVO;
import com.dgut.hisystem.entity.VO.BillVO;
import com.dgut.hisystem.entity.VO.ChargeVO;
import com.dgut.hisystem.entity.VO.DailyVO;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.sql.Timestamp;
import java.util.List;

public interface ChargeService {
    void insert(Charge charge);
    void updateCharge(int sf_id);
    void updateRefund(int sf_id);
    Charge getChargeById(int sf_id);
    void pay(int sf_id);
    void back(int sf_id);
    List<ChargeVO> selectCharge();
    List<ChargeVO> selectRefund();
    List<DailyVO> selectDaily(Timestamp c, Timestamp d);
    List<ChargeVO> selectChargeByCard(long br_card);
    List<ChargeVO> selectRefundByCard(long br_card);
    List<DailyVO> selectDailyByCard(long br_card,Timestamp c, Timestamp d);
    BalanceVO getBalance(long br_card);
    List<BillVO> getBill(int sf_id);
}
